package com.mzkj.wanjulaile.mobile.api.modules.coupon.entity;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.mzkj.wanjulaile.mobile.api.common.entity.DataEntity;
import com.mzkj.wanjulaile.mobile.api.modules.account.entity.Account;

/**
 * 邀请记录Entity
 * @author hgw
 * @version 2016-11-29
 */
public class Invite extends DataEntity<Invite> {
	
	private static final long serialVersionUID = 1L;
	private Account invitedAccount;		// 邀请人账户id
	private Account beInvitd;		// 被邀请人账户id
	private Integer inviteTimeDuration;	//一星邀请人获得时长
	private String inviteTimeUnit;
	private Integer inviteTimeDurationT;	//二星星邀请人获得时长
	private String inviteTimeUnitT;
	private String inviteTimeUse;	//获得时长是否已经累加到账号 0 否 默认 1 是
	private Integer beInvitedTimeDuration;	//被邀请人获得时长
	private String beInvitedTimeUnit;
	private String beInvitedTimeUse;
	private String successFlag;		//成功邀请标记 即被邀请人成功充值相应的会员并下单 0否 默认 1 是 (是否已得到奖励)
	
	public Invite() {
		super();
	}

	public Invite(String id){
		super(id);
	}

	@JsonBackReference
	public Account getInvitedAccount() {
		return invitedAccount;
	}

	public void setInvitedAccount(Account invitedAccount) {
		this.invitedAccount = invitedAccount;
	}
	
	@JsonBackReference
	public Account getBeInvitd() {
		return beInvitd;
	}

	public void setBeInvitd(Account beInvitd) {
		this.beInvitd = beInvitd;
	}

	public Integer getInviteTimeDuration() {
		return inviteTimeDuration;
	}

	public void setInviteTimeDuration(Integer inviteTimeDuration) {
		this.inviteTimeDuration = inviteTimeDuration;
	}

	public String getInviteTimeUnit() {
		return inviteTimeUnit;
	}

	public void setInviteTimeUnit(String inviteTimeUnit) {
		this.inviteTimeUnit = inviteTimeUnit;
	}

	public Integer getInviteTimeDurationT() {
		return inviteTimeDurationT;
	}

	public void setInviteTimeDurationT(Integer inviteTimeDurationT) {
		this.inviteTimeDurationT = inviteTimeDurationT;
	}

	public String getInviteTimeUnitT() {
		return inviteTimeUnitT;
	}

	public void setInviteTimeUnitT(String inviteTimeUnitT) {
		this.inviteTimeUnitT = inviteTimeUnitT;
	}

	public String getInviteTimeUse() {
		return inviteTimeUse;
	}

	public void setInviteTimeUse(String inviteTimeUse) {
		this.inviteTimeUse = inviteTimeUse;
	}

	public Integer getBeInvitedTimeDuration() {
		return beInvitedTimeDuration;
	}

	public void setBeInvitedTimeDuration(Integer beInvitedTimeDuration) {
		this.beInvitedTimeDuration = beInvitedTimeDuration;
	}

	public String getBeInvitedTimeUnit() {
		return beInvitedTimeUnit;
	}

	public void setBeInvitedTimeUnit(String beInvitedTimeUnit) {
		this.beInvitedTimeUnit = beInvitedTimeUnit;
	}

	public String getBeInvitedTimeUse() {
		return beInvitedTimeUse;
	}

	public void setBeInvitedTimeUse(String beInvitedTimeUse) {
		this.beInvitedTimeUse = beInvitedTimeUse;
	}

	public String getSuccessFlag() {
		return successFlag;
	}

	public void setSuccessFlag(String successFlag) {
		this.successFlag = successFlag;
	}
}